//
//  PhotoCell.m
//  carowner
//
//  Created by apple on 2019/5/22.
//  Copyright © 2019 ggj. All rights reserved.
//

#import "PhotoCell.h"

@implementation PhotoCell

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if(self){
        _photoView = [[UIImageView alloc] init];
        [_photoView setContentScaleFactor:[[UIScreen mainScreen] scale]];
        _photoView.contentMode =  UIViewContentModeScaleAspectFill;
        _photoView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
        _photoView.clipsToBounds  = YES;
        [self addSubview:_photoView];
        
        [_photoView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.top.equalTo(self).offset(5);
            make.right.bottom.equalTo(self).offset(-5);
        }];
        
    }
    return self;
}

-(void)setImageUrl:(NSString *)url{
    [MyUtils loadImageWithUrl:url intoView:_photoView];
}

-(void)setLocalPath:(NSString *)path{
    
}



@end
